package com.example.springstatemachine.model;

/**
 * 路由实体类
 */
public class Transactions {

    private String id;

    private String name;

    private Task fromTask;

    private Task toTask;

    public Transactions(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Task getFromTask() {
        return fromTask;
    }

    public void setFromTask(Task fromTask) {
        this.fromTask = fromTask;
    }

    public Task getToTask() {
        return toTask;
    }

    public void setToTask(Task toTask) {
        this.toTask = toTask;
    }

    @Override
    public String toString() {
        return "Transactions{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
